package com.flyinbed.coolweather;

import android.app.Application;
import android.content.SharedPreferences;


/**
 * 作者：Administrator on 2016/9/26 09:10
 * 邮箱：zhanghuaiha@gmail.com
 */

public class App extends Application {

    /**
     * 全局Context，方便引用
     */
    public static App application;
    /**
     * 初始化SP&EDIT
     */
    //ddddddddd
    public static SharedPreferences SP;
    public static SharedPreferences.Editor EDIT;
    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        //初始化通用的SP&EDIT
        SP = getSharedPreferences("config", MODE_PRIVATE);
        EDIT = SP.edit();


    }

}
